import {User, AuthUser} from '../entity/TT'

export class Avatar {
    url: string;
    uin: string;
    name: string;

    static from(user: User): Avatar  {
        let au : Avatar = {
            uin: user.uin,
            url: user.avatar,
            name: user.name,
        }
        return au
  }

}